#ifndef MINDSPORE_CXX_TESTCASE_UTILS
#define MINDSPORE_CXX_TESTCASE_UTILS

#include <vector>
#include <string>
#include <memory>
#include <sys/stat.h>
#include <dirent.h>
#include "include/api/types.h"

std::vector<std::vector<std::string>> GetAllInputData(std::string_view dir_name);
std::vector<std::string> GetAllBins(std::string_view dir_name);
std::vector<std::string> GetAllFiles(std::string_view dir_name);
DIR *OpenDir(std::string_view dir_name);
std::string RealPath(std::string_view path);
mindspore::Buffer ReadFile(const std::string &file);
mindspore::MSTensor ReadFileToTensor(const std::string &file);
void SaveFile(int idx, mindspore::MSTensor buffer, const std::string &file_path);
#endif